I have function:
$(function () {
$('form').on('submit', function (e) {
$.ajax({
type: 'POST',
url: 'conf/send.php',
data: $('form').serialize(),
success: function () {
var form = document.getElementById("Form");
form.submit();
}
});
e.preventDefault();
});
});
In FF, Chrome, Opera, IE work good. In Safari not work. Tried to add:
async: false,
$.ajaxSetup({
type: 'POST',
headers: { "cache-control": "no-cache" }
});
$.ajaxPrefilter(function (options, originalOptions, jqXHR) {
options.data = jQuery.param($.extend(originalOptions.data||{}, {
timeStamp: new Date().getTime()
}));
});
It did not help that could be done?
Thanks in advance!
Anonymous User
28-Sep-2013Hi Jeet!
Are you sure that this code:
Is actually what you want? You're telling JavaScript that if your form sends via AJAX, it should then send the form with the id of #Form. Perhaps you should try this: